

package statistics;

import java.util.*;


public class Test{
    
    public Test(){}
    
    public static void main(String[] args){
        Random rand = new Random();
        Distribution bernDist = new UniformDistribution(0,10,rand);
        
        System.out.println("Expectation: "+bernDist.expectation());
        System.out.println("Variance: "+ bernDist.variance());
        
        for(int i = 0; i <= 100; i++){
        System.out.println("Sample: "+bernDist.nextRandom());
        }
    }
    
    
}

